package com.tudouji.project.wechat.service;

import com.tudouji.framework.web.domain.AjaxResult;
import com.tudouji.project.system.domain.SysUser;
import org.weixin4j.WeixinException;

/**
 * @author wf
 * @date 2021年05月26日 16:22
 */
public interface WechatService {


    /**
     * 获取openid
     *
     * @param code
     * @return
     */
    public String getOpenid(String code);


    /**
     * 微信登录
     *
     *
     * @param phone
     * @param pwd
     * @return
     */
    public AjaxResult wechatLogin(String phone, String pwd, String openid, Boolean menu) throws WeixinException;

    /**
     * 微信登录
     *
     * @param user
     * @return
     */
    public AjaxResult wechatRegist(SysUser user,String managerID) throws Exception;

    public AjaxResult getSmsCode(String phoneNumber) throws Exception;


    public AjaxResult logout();
}
